﻿using Production.CommonLib.Models;
using Swimj.CommonLib.Base;

namespace Production.RazorLib.Services;

public interface IProductionOrderService
{
    Task<PaginatedResult<ProductionOrderInfoResponseDto>?> QueryProductionOrdersByPage(ProductionOrderSearchRequestDto searchRequestDto);
    
    
    Task<Result<ProductionOrderInfoResponseDto>?> CreateProductionOrder(ProductionOrderEditRequestDto editRequestDto);

    Task<Result<ProductionOrderInfoResponseDto>?> GetProductionOrder(int key);

    Task<Result<ProductionOrderInfoResponseDto>?> UpdateProductionOrder(int key, ProductionOrderEditRequestDto editRequestDto);

}